<?php
//根据日期搜索当日菜名。
include "connection.php";


$week=date("d",time());
 
$tableProduct = "product";

$query = mysql_query("SELECT COUNT(*) FROM $tableProduct where week = '$week'");
$product_sum = mysql_result($query, 0);



$resultPorduct = mysql_query("select * from $tableProduct where week ='$week' ");
while ($row = mysql_fetch_array($resultPorduct)) {

    $product_names[] = $row['product_name'];

}


?>
